package tiruvury.InterviewPrep.DataStructureTests;

import tiruvury.InterviewPrep.HelperClasses.StackWithMin;

public class MyStksAndQsTests
{

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		int[] arr =
		{ 5, 8, 3, 3, 7, 1, 2, 1, 4 };
		StackWithMin myStack = new StackWithMin();

		// Test 2
		myStack.Push(5);
		System.out.println("Stack Top: " + myStack.peek() + " Min so far: " + myStack.Min());

		// Test 3
		myStack.Push(5);
		myStack.Pop();
		System.out.println("Stack Top: " + myStack.peek() + " Min so far: " + myStack.Min());

		// Test 4
		myStack.Push(5);
		myStack.Push(8);
		System.out.println("Stack Top: " + myStack.peek() + " Min so far: " + myStack.Min());

		myStack.Push(3);
		myStack.Push(4);
		System.out.println("Stack Top: " + myStack.peek() + " Min so far: " + myStack.Min());

		myStack.Push(3);
		myStack.Push(1);
		System.out.println("Stack Top: " + myStack.peek() + " Min so far: " + myStack.Min());

		myStack.Pop();
		System.out.println("Stack Top: " + myStack.peek() + " Min so far: " + myStack.Min());

		myStack.Pop();
		System.out.println("Stack Top: " + myStack.peek() + " Min so far: " + myStack.Min());

		myStack.Pop();
		System.out.println("Stack Top: " + myStack.peek() + " Min so far: " + myStack.Min());

		myStack.Pop();
		System.out.println("Stack Top: " + myStack.peek() + " Min so far: " + myStack.Min());

	}

}
